package com.develophelper.examples.listener;

import com.alibaba.fastjson.JSON;
import com.develophelper.aliyun.rocketmq.annotation.RocketMQMessageListener;
import com.develophelper.aliyun.rocketmq.core.RocketMQListener;
import com.develophelper.aliyun.rocketmq.dto.PushDto;
import lombok.extern.slf4j.Slf4j;

/**
 * @author snaildev
 * @date 2021/05/13
 **/
@Slf4j
@RocketMQMessageListener(topic = "luffy_e_association_task_dev", selectorExpression = "TEST_TAG1")
public class TestListener1 implements RocketMQListener<PushDto> {
    @Override
    public void onMessage(PushDto message) {
        log.info(JSON.toJSONString(message));
    }
}
